package cn.tedu.service;


import cn.tedu.dao.CarMapper;
import cn.tedu.pojo.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service //ioc
public class CarServicelmpl implements CarService{
    @Autowired
    private CarMapper mapper;
    @Autowired
    private CarService carService;

    @Override
    public Car getById(Integer id) {
       return mapper.getById(id);
    }

}
